package cn.iocoder.an.module.mold.service.equipmentkeeptype;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.module.business.controller.admin.equipmentmanage.vo.ImportRespVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeeptype.vo.EquipmentKeepTypeImportExcelVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeeptype.vo.EquipmentKeepTypePageReqVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeeptype.vo.EquipmentKeepTypeSaveReqVO;
import cn.iocoder.an.module.mold.dal.dataobject.equipmentkeeptype.EquipmentKeepTypeDO;
import jakarta.validation.Valid;

import java.util.List;

/**
 * 设备保养分类 Service 接口
 *
 * @author zzy
 */
public interface EquipmentKeepTypeService {

    /**
     * 创建设备保养分类
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createEquipmentKeepType(@Valid EquipmentKeepTypeSaveReqVO createReqVO);

    /**
     * 更新设备保养分类
     *
     * @param updateReqVO 更新信息
     */
    void updateEquipmentKeepType(@Valid EquipmentKeepTypeSaveReqVO updateReqVO);

    /**
     * 删除设备保养分类
     *
     * @param id 编号
     */
    void deleteEquipmentKeepType(Long id);

    /**
    * 批量删除设备保养分类
    *
    * @param ids 编号
    */
    void deleteEquipmentKeepTypeListByIds(List<Long> ids);

    /**
     * 获得设备保养分类
     *
     * @param id 编号
     * @return 设备保养分类
     */
    EquipmentKeepTypeDO getEquipmentKeepType(Long id);

    /**
     * 获得设备保养分类分页
     *
     * @param pageReqVO 分页查询
     * @return 设备保养分类分页
     */
    PageResult<EquipmentKeepTypeDO> getEquipmentKeepTypePage(EquipmentKeepTypePageReqVO pageReqVO);


    /**
     * 获得启用的所有分类
     *
     *
     * @return 设备保养分类
     */
    List<EquipmentKeepTypeDO> getEquipmentKeepTypeList();

    List<EquipmentKeepTypeDO> getEquipmentKeepTypeListNew();

    /**
     * 批量导入
     *
     * @param list     导入数据
     * @param isUpdateSupport 是否支持更新
     * @return 导入结果
     */
    ImportRespVO importList(List<EquipmentKeepTypeImportExcelVO> list, boolean isUpdateSupport);


}